<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%-- This page contains forms that can  be used for interacting
     with our chosen web services --%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>temporary form reference</title>
    </head>
    <body>
        <h1>Mailing List forms</h1>
        <h2>Subscribe</h2>
        <form method= "post" action="MailingListSubscribe">
            Name: <input type ="text" name ="name"><br/><hr/>
            Email: <input type ="text" name ="email"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Un-subscribe</h2>
        <form method= "post" action="MailingListUnsubscribe">
            Email: <input type ="text" name ="email"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get list of subscribers</h2>
        <form method= "post" action="MailingListGetSubscribers">
        <input type ="submit" value ="Click to submit"/> </form>

        <h1>Delivery forms</h1>
        <h2>Create Tracking Number</h2>
         <form method= "post" action="DeliveryCreateTrackingNo">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Item Number: <input type ="text" name ="itemNum"><br/><hr/>
            Delivery Address: <input type ="text" name ="deliveryAddress"><br/><hr/>
            Delivery Method Number: <input type ="text" name ="deliveryMethodNum"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>View Order</h2>
         <form method= "post" action="DeliveryViewOrder">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Update Delivery Status</h2>
         <form method= "post" action="DeliveryUpdateDeliveryStatus">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
            Status: <input type ="text" name ="status"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Retrieve Delivery Status</h2>
         <form method= "post" action="DeliveryRetrieveDeliveryStatus">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Cancel Delivery</h2>
         <form method= "post" action="DeliveryCancelDelivery">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Update Delivery Address</h2>
         <form method= "post" action="DeliveryUpdateAddress">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
            Address: <input type ="text" name ="address"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Lock Delivery</h2>
         <form method= "post" action="DeliveryLockDelivery">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Unlock Delivery</h2>
         <form method= "post" action="DeliveryUnlockDelivery">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
            Tracking Number: <input type ="text" name ="trackingNumber"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
         <h2>Get All Orders</h2>
         <form method= "post" action="DeliveryGetAllOrders">
            Consumer ID: <input type ="text" name ="consumerid"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        
        <h1>Payment forms</h1>
        <h2>Validate card details</h2>
        <form method= "post" action="PaymentValidateCard">
            Card Number (16 digit, spaces/dashes optional): <input type ="text" name ="cardNumber"><br/><hr/>
            Security code (3 digit): <input type ="text" name ="securityCode"><br/><hr/>
            Cardholder name: <input type ="text" name ="cardholderName"><br/><hr/>
            Start date (mm/yy): <input type ="text" name ="startDate"><br/><hr/>
            End date (mm/yy): <input type ="text" name ="endDate"><br/><hr/>
            Amount: £<input type ="text" name ="amount"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Validate PayPal</h2>
        <form method= "post" action="PaymentValidatePayPal">
            Username (min 6 characters): <input type ="text" name ="username"><br/><hr/>
            Password (min 6 characters): <input type ="password" name ="password"><br/><hr/>
            Amount: £<input type ="text" name ="amount"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <p>I've not implemented the cheque methods becuase i dont think we'll need them, or getPaymentStatus/amount because the authorisation code returned by the validation methods is always 0 rather than the unique ID stated in the spec.</p>

        <h1>Wish List forms</h1>
        <h2>Add Item</h2>
        <form method= "post" action="WishListAddItem">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
            Item ID: <input type ="text" name ="itemID"><br/><hr/>
            Comment: <input type ="text" name ="comment"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Add Customer</h2>
        <form method= "post" action="WishListAddCustomer">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Add List</h2>
        <form method= "post" action="WishListAddList">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Delete Item</h2>
        <form method= "post" action="WishListDeleteItem">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
            Item ID: <input type ="text" name ="itemID"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Delete List</h2>
        <form method= "post" action="WishListDeleteList">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get Item Comment</h2>
        <form method= "post" action="WishListGetItemComment">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
            Item ID: <input type ="text" name ="itemID"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get List of items</h2>
        <form method= "post" action="WishListGetListItems">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
            List Name: <input type ="text" name ="listName"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get Lists</h2>
        <form method= "post" action="WishListGetLists">
            Customer ID: <input type ="text" name ="custID"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        
        <h1>Feedback forms</h1>
        <h2>Get Comment from user on product</h2>
        <form method= "post" action="FeedbackGetComment">
            Product Code: <input type ="text" name ="productCode"><br/><hr/>
            User ID: <input type ="text" name ="userID"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get All Comments on product</h2>
        <form method= "post" action="FeedbackGetAllComments">
            Product Code: <input type ="text" name ="productCode"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Post Feedback</h2>
        <form method= "get" action="FeedbackPostFeedback">
            Product Code: <input type ="text" name ="productCode"><br/><hr/>
            User ID: <input type ="text" name ="userID"><br/><hr/>
            Rating: <input type ="text" name ="rating"><br/><hr/>
            Comments: <input type ="text" name ="comments"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
        <h2>Get Average Rating</h2>
        <form method= "post" action="FeedbackGetRating">
            Product Code: <input type ="text" name ="productCode"><br/><hr/>
        <input type ="submit" value ="Click to submit"/> </form>
    </body>
</html>
